/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Packets;

import java.io.Serializable;
import java.net.Socket;

/**
 *
 * @author Oho
 * command : la lenh thuc hien
 * type : loai du lieu 
 * Obj : du lieu can goi qua 
 * Sk : socet dung de luu tru thong tin cua client
 
 */
public class pkValue implements Serializable{
    private int command;
    private int type;

    private Object obj;
   /*
    icom lenh thuc hien 
    * ivalue : gia tri dinh dang kieu du lieu 
    * id : id cua goi tin 
    * object doi tuong can truyen 
    */
    
static final long serialVersionUID = -2891912117274448870L; 

   public pkValue()
   {}
   /*
    * icom : la lenh nao 
    * 1 CHAT,2 GUIFILE ,3 GUITHONGDIEP....
    * ivalue: gia tri 
    * object: doi tuong can gui di 
    */
    public pkValue(int icom,int ivalue,Object sui)
    {
        command = icom;
        type = ivalue;
        obj = sui;
      
    }

    /**
     * @return the command
     */
    public int getCommand() {
        return command;
    }

    /**
     * @param command the command to set
     */
    public void setCommand(int command) {
        this.command = command;
    }

    /**
     * @return the value
     */
    public int getValue() {
        return type;
    }

    /**
     * @param value the value to set
     */
    public void setValue(int value) {
        this.type = value;
    }

    /**
     * @return the ui
     */
    public Object getObj() {
        return obj;
    }

    /**
     * @param ui the ui to set
     */
    public void setObj(Object ui) {
        this.obj = ui;
    }

    /**
     * @return the sk
     */
 
    /**
     * @return the ID
     */
   
    /**
     * @param ID the ID to set
     */
  
}
